package com.cuitrip.apiservice;

import com.cuitrip.apiservice.model.ApiManager;
import com.lab.network.model.CtApiRequest;
import com.lab.network.model.CtRemoteBusiness;
import com.lab.network.model.ParseType;
import com.lab.network.proxy.ApiProxy;
import com.lab.utils.imageupload.model.OssTokenObject;

/**
 * 综合使用的业务
 * Created by ak on 16/2/29.
 */
public class CommonBusiness {

    public static void getMobileOssToken(ApiProxy apiProxy) {
        CtApiRequest ctApiRequest = new CtApiRequest();
        ctApiRequest.setApiName(ApiManager.GET_MOBILE_OSS_TOKEN);
        CtRemoteBusiness ctRemoteBusiness = new CtRemoteBusiness(ctApiRequest);
        apiProxy.postAsync(ctRemoteBusiness, new ParseType(OssTokenObject.class));
    }

}
